package com.pinxixi.api.cart;

import com.pinxixi.framework.domain.cart.ItemCart;
import com.pinxixi.framework.domain.cart.SellerCart;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import com.pinxixi.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Api(value="购物车微服务API",description = "购物车微服务接口")
public interface CartControllerApi {

    @ApiOperation("查询购物车")
    ListResponseResult findCart(HttpServletRequest request);

    @ApiOperation("添加购物车")
    ResponseResult addCart(SellerCart sellerCart, HttpServletRequest request);

    @ApiOperation("合并购物车")
    ListResponseResult combineCart(List<SellerCart> localCart, HttpServletRequest request);

}
